package com.example.yunJie.digitalSentry.control;

import com.example.yunJie.digitalSentry.entity.RoleEntity;
import com.example.yunJie.digitalSentry.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/Role")
public class RoleControl {
    @Autowired
    private RoleService roleService;

    @RequestMapping("/find")
    public List<RoleEntity> findId() {
        return roleService.find();
    }
}
